<template>
    <form class="layui-form" action="">
            <div class="layui-form-item kgo-form-alone-item">
                    <div class="layui-input-inline kgo-textarea-alone-inline">
                         <textarea v-model="textareaValue" placeholder="请输入内容" class="layui-textarea" v-bind:style="{ height: height }"></textarea>
                    </div>
            </div>
    </form>


</template>

<script>

export default {
    props:{
      height:{
          default:'auto'
      },
      setValue:{
        default:null
      }
    },
     data () {
        return {
            textareaValue:""

        }
    },
    created(){
      if(this.setValue!=null){
        this.textareaValue = this.setValue;
      }
    },
   mounted(){

   },
    methods:{
      getTextarea:function(value){
          this.$emit('textarea',this.textareaValue)//将值绑定到transfer上传递过去
          return this.textareaValue;
      }
    }
}
</script>

<style lang="scss">
.kgo-form-alone-item{
    margin-bottom: 0px;
}
.kgo-textarea-alone-inline{
    width: 100% !important;
    min-height: 130px;
}
</style>
